Ubuntu 12.04
Sponsored Link

OpenStack Havana - Add Compute Nodes
2013/11/25
 
Add Compute Nodes to run more instanes.
The example below shows to configure a Compute Node on another Computer from Control Node.
[1]
Install KVM Hypervisor first which needs on Compute Node. It's unnecessarry to set Bridge networking on the section [3] of the link.
[2] Install Nova-Compute, Nova-Network

root@node01:~#
aptitude -y install nova-network nova-compute-kvm python-novaclient
[3] Configure Nova
root@node01:~#
vi /etc/nova/nova.conf
# add at the last

# add if it's not need IPv6

use_ipv6=false
auth_strategy=keystone
rootwrap_config=/etc/nova/rootwrap.conf
# the one added in MySQL

sql_connection=mysql://nova:password@10.0.0.30/nova
osapi_compute_listen="0.0.0.0"
osapi_compute_listen_port=8774
scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
# Glance server's hostname or IP

glance_host=10.0.0.30
glance_port=9292
glance_protocol=http
rpc_backend = nova.openstack.common.rpc.impl_kombu
notification_driver=nova.openstack.common.notifier.rpc_notifier
# Memcached server's hostname or IP

memcached_servers=10.0.0.30:11211
# RabbitMQ server's hostname or IP

rabbit_host = 10.0.0.30
# RabbitMQ server ID for auth

rabbit_userid = guest
# RabbitMQ server ID password of above for auth

rabbit_password = password
libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver
linuxnet_interface_driver=nova.network.linux_net.LinuxBridgeInterfaceDriver
firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
network_api_class=nova.network.api.API
security_group_api=nova
network_manager=nova.network.manager.FlatDHCPManager
# specify nic for public

public_interface=eth0
# specify any name for bridge

flat_network_bridge=br100
# specify nic for flat DHCP bridge

flat_interface=eth0
root@node01:~#
vi /etc/nova/api-paste.ini
# line 115 : change like follows (the one added in Keystone)

[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
auth_host =
10.0.0.30

auth_port = 35357
auth_protocol = http
admin_tenant_name =
service

admin_user =
nova

admin_password =
servicepassword
root@node01:~#
for service in compute network; do
service nova-$service restart
done

nova-compute stop/waiting
nova-compute start/running, process 5715
nova-network stop/waiting
nova-network start/running, process 5725
[4] Make sure services are working normally. It's OK if the status of services are like follows.
root@node01:~#
nova-manage service list

Binary           Host             Zone             Status     State Updated_At
nova-conductor   dlp              internal         enabled    :-)   2013-11-26 04:19:52
nova-scheduler   dlp              internal         enabled    :-)   2013-11-26 04:19:58
nova-network     dlp              internal         enabled    :-)   2013-11-26 04:19:57
nova-cert        dlp              internal         enabled    :-)   2013-11-26 04:19:57
nova-compute     dlp              nova             enabled    :-)   2013-11-26 04:19:51
nova-consoleauth dlp              internal         enabled    :-)   2013-11-26 04:19:56
nova-compute     node01           nova             enabled    :-)   2013-11-26 04:19:54
nova-network     node01           internal         enabled    :-)   2013-11-26 04:19:54
 
Tweet